package com.yannuo.service.impl;

import com.yannuo.service.OrderService;

public class OrderServiceImpl implements OrderService {
    @Override
    public void createOrder(String orderId) {
        try {
            // 模拟业务处理耗时
            Thread.sleep(200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("创建订单: " + orderId);
    }

    @Override
    public void cancelOrder(String orderId) {
        try {
            // 模拟业务处理耗时
            Thread.sleep(150);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("取消订单: " + orderId);
    }
}
